import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('@/views/AboutUs/AboutUsView.vue'),
    },
    //关于我们
    {
        path: '/AboutUsView',
        name: 'AboutUsView',
        component: () => import('@/views/AboutUs/AboutUsView.vue'),
    },
    //全球基地
    {
        path: '/GlobalBasesView',
        name: 'GlobalBasesView',
        component: () => import('@/views/GlobalBases/GlobalBasesView.vue'),
    },
    //行业智库
    {
        path: '/IndustryThinkTankView',
        name: 'IndustryThinkTankView',
        component: () => import('@/views/IndustryThinkTank/IndustryThinkTankView.vue'),
    },
    //创业服务
    {
        path: '/EntrepreneurshipServiceView',
        name: 'EntrepreneurshipServiceView',
        component: () => import('@/views/EntrepreneurshipService/EntrepreneurshipServiceView.vue'),
    },
    //联系我们
    {
        path: '/contactus',
        name: 'ContactUs',
        component: () => import('@/components/ContactUs/ContactUs.vue'),
    },
    //投资机构
    {
        path: '/investor',
        name: 'InvestInstitution',
        component: () => import('@/components/EcologicalResources/InvestInstitution.vue'),
    },
    //医疗机构
    {
        path: '/medical',
        name: 'MedicalInstitution',
        component: () => import('@/components/EcologicalResources/MedicalInstitution.vue'),
    },
    //服务供应商
    {
        path: '/service',
        name: 'service',
        component: () => import('@/components/EcologicalResources/ServiceProviders.vue'),
    },
    //国际/国内组织
    {
        path: '/organizations',
        name: 'InternationalOrganizations',
        component: () => import('@/components/EcologicalResources/InternationalOrganizations.vue'),
    },
    //国际/国内政府机构
    {
        path: '/government',
        name: 'InternationalGovernment',
        component: () => import('@/components/EcologicalResources/InternationalGovernment.vue'),
    },

    /*
    --------------------------------------------------------------
                            已登录的路由
    --------------------------------------------------------------
     */

    //关于我们
    {
        path: '/AboutUsView/islogin',
        name: 'AboutUsViewislogin',
        component: () => import('@/views/AboutUs/AboutUsView.vue'),
    },
    //全球基地   登录之后增加筛选功能
    {
        path: '/GlobalBasesView/islogin',
        name: 'GlobalBasesViewislogin',
        component: () => import('@/views/GlobalBases/GlobalBasesIsLoginView.vue'),
    },
    //行业智库   登录之后增加筛选功能
    {
        path: '/IndustryThinkTankView/islogin',
        name: 'IndustryThinkTankViewislogin',
        component: () => import('@/views/IndustryThinkTank/IndustryThinkTankIsLoginView.vue'),
    },
    //创业服务
    {
        path: '/EntrepreneurshipServiceView/islogin',
        name: 'EntrepreneurshipServiceViewislogin',
        component: () => import('@/views/EntrepreneurshipService/EntrepreneurshipServiceView.vue'),
    },
    //联系我们
    {
        path: '/contactus/islogin',
        name: 'ContactUsislogin',
        component: () => import('@/components/ContactUs/ContactUs.vue'),
    },
    //投资机构
    {
        path: '/investor/islogin',
        name: 'InvestInstitutionislogin',
        component: () => import('@/components/EcologicalResources/InvestInstitution.vue'),
    },
    //医疗机构
    {
        path: '/medical/islogin',
        name: 'MedicalInstitutionislogin',
        component: () => import('@/components/EcologicalResources/MedicalInstitution.vue'),
    },
    //服务供应商
    {
        path: '/service/islogin',
        name: 'serviceislogin',
        component: () => import('@/components/EcologicalResources/ServiceProviders.vue'),
    },
    //国际/国内组织
    {
        path: '/organizations/islogin',
        name: 'InternationalOrganizationsislogin',
        component: () => import('@/components/EcologicalResources/InternationalOrganizations.vue'),
    },
    //国际/国内政府机构
    {
        path: '/government/islogin',
        name: 'InternationalGovernmentislogin',
        component: () => import('@/components/EcologicalResources/InternationalGovernment.vue'),
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
